package com.ada.base.security.controller;

import com.ada.base.security.UserInitialization;
import org.springframework.web.bind.annotation.PatchMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AdaController {

    @PatchMapping("/ada/{ada}")
    public long ada(@PathVariable("ada") long ada) {
        UserInitialization.setAda(ada);
        return ada;
    }
}
